package com.liuceng.zen.service;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.liuceng.zen.mapper.AdminMapper;
import com.liuceng.zen.pojo.domain.Admin;

@Service
public class AdminService extends BaseService<Admin> {
  @Autowired
  AdminMapper adminMapper;

  public Admin selectByDepartmentId(Integer departmentId) {
    Map<String, Object> map = new HashMap<>();
    map.put("departmentId", departmentId);
    map.put("system", true);
    return adminMapper.selectByDepartmentId(map);
  }
}
